package com.itlxd.service;

import com.itlxd.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 用户信息 服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-12-25
 */
public interface IUserService {

    /**
     * 获取用户信息
     * @param user
     * @return
     */
    User getUser(User user);

    /**
     * 获取验证码
     * @param phone
     * @return
     */
    Integer generateCode(String phone);

    /**
     * 验证验证码
     * @param phone
     * @param code
     * @return
     */
    boolean validateCode(String phone, String code);

    /**
     * 添加用户
     * @param user
     * @return
     */
    int addSave(User user);
}
